<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文字对齐方式</title>
    <style>
        .c1{
            height: 75px;
            width: 200px;
            border: 4px solid darkturquoise;
            text-align: center;/*水平方向居中*/
            line-height: 75px;/*垂直方向居中，数值和height参数保持一致，条件限值(1行）*/
        }
    </style>
</head>
<body>
<div class="c1">刘邦建立了汉朝</div>
</body>
</html>